improved a bit ncbuild