Changes to work on Linux.