safety compiler flag for BG/Q

this pull-request adds the "-qthreaded" compiler flag for extra safety when compiling on BG/Q with threading. This should ensure that even if a user compiles with mpixlc instead of mpixlc_r, the compiler will select thread-safe implementations of built-in functions.