Improved platform support in Makefile.orig

This adds a platform check and sets certain command options accordingly.