Fixed makefile and native code for linux 3.2 (Debian)