platform-dependent osx and linux makefiles until better solution