linux fixes and such

More fixes.