Fix some *nix compiler errors.

/cc @Hoikas