fixes for cmake build on linux 64bit