Clean build

This change-set reintroduces support for out-of-source builds that was lost in commit e186c0a.  While here, also correct a number of lingering whitespace issues in the examples' Automake setup.