Line 30 in CMakelists.txt:
set(C_CXX_FLAGS "-Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
is causing the library to fail to compile on a recent kernel and gcc version.
Setting to:
set(C_CXX_FLAGS "-Wall -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
i.e. removing -Werror allows for compilation to proceed.