Linux fixes.
Works on Linux now.