Fix C++11 narrowing issues
Change link interface definitions according to policy CMP0022
Make it possible to build in C++11 mode and with clang