native: fix Makefiles for OSX
Merge pull request #2009 from thomaseichinger/native-fix

native: fix Makefiles for OSX