fix Linux  and Cmake build