On Ubuntu 16.04, the compilation failed. Need to 1) add -std=c++11 in CFLAGS in the Makefile 2) switch the order of $(OBJECTS) and $(LDFLAGS) in the linking phase, as is mentioned in this stackoverflow post, "the library that needs symbols must be first, then the library that resolves the symbol."
After these two tweaks the compilation went smoothly :)