some fixes for Linux build