add nproc
Merge pull request #426 from ebfe/nproc

add nproc