handle osx/sdl/libs