OpenMP not working for statically linked version