Long standing bug of CMake prepending linker flags is fixed.