various makefile fixes, split map projection code file