Factor out non-portable parts of Makefile into NonPortable.mak