added -fPIC and c++11 cxx compiler flags on gnu compilers
Merge branch 'cxx_flags'