fixes for build on linux