add *nix/mpc compatibility and a few other things