Some speedup in build for linux, debug info for osx