Two enhancements

1. We are using an older g++ version, which doesn't support -std=c++11 yet, so I introduced a check for C++11 support
2. The linker flags in the generated *CommonAPI.pc files were lacking the library directory