Add support for building examples from the Makefile