narcoleptic library doesn't compile with Mega2560 or 1284p

Probably just incompatibility with hardcoded port usage, something like that.
Have you tried contacting the library creator about it?
Got a link to the library, preferably to source code?