Making -pedantic and -fPIC compiler flags non-global to avoid warnings when compiling GL related libs