Fixed some errors with the nbm build.