Use src/ not lib/ as root of source in example Makefile.am code.