npm and macports fixes