Fixed some *nix compile errors