Abstracted native code; fixed Makefile