Makefile changes to make it work with emmake