CMake: set output library directory properly.