Fix Compile issues with __devinit and __devexit macros. and more clean up in Makefile