improved examples/

add Makefile to make all examples via implicit rules
hide main() behind #if defined set in Makefile rather than comment
correct one identifier in fourth example