Factor platform specific makefile directives out into their own makefile