Seems like a file is missing in GIT:
In file included from ../../plugins/example_history.c:33:
../../src/driver.h:22:25: error: ofono/types.h: No such file or directory
types.h is a new include that has been added. The current automake magic
seems to not handle this case well. make clean; make inside include/ should
stop the compiler complaining.