Improved application of -fPIC to sub projects; remove gmock.h usage in a few headers; specify cxx flags for builds without a build type set