Fixes some issues on Linux.