Applied Daniel Macks' patch to use ${CMAKE_INSTALL_LIBDIR} instead of