fixed bugs, included openmp libs