Port nsbcompile2 to npa-devel