Make input file get generated by autotools

This way the input file makes its way into the build directory.  This allows
for out-of-source builds
Use new header locations and use namespaces properly