fix build issues on linux