fixes for running on Linux