Build fixes for *nix.