fix/support osx cross compiling
add NOCOMPATHACK option to Makefile