Adjust Makefile.am's to support out-of-source builds

Just a simple modification to enable out-of-source builds. There's no reason why it's broken.