Fix Makefile to obey CROSS_COMPILE flag and adjust build script