cmake: fix build on linux