move portable definitions into Makefile.port