Fix some cmake build issues on Linux

Fix some cmake build issues on Linux