make it work on Linux, with host machine x86_64

replace the original makefile