Compile with Homebrew works on OS X. Will test on Linux later but finally
got this working.
Left some comments in CMakeLists