Cmake: Correct library output names even for cmake 2.6