Minor compilation fixes and setting the number of threads for openmp
Merge pull request #143 from cerquide/ncpus

Minor compilation fixes and setting the number of threads for openmp