add openmp flags explicitly to linking stage

this should hopefully fix the issue you were having on cygwin