osx/linux compilation