fixes compiler errors on Linux