changes needed to fix build on linux