Fix hardcoded lib path and use %cmake macros