Fix some Linuxisms.

Fix some Linux assumptions.