another bunch of linux fixes
more linux fixes