fixed build issues on Linux