Fixed configure.ac and Makefile.am

This fix is untested on Darwin and Windows.

Thanks to Gabriele Fulgaro
This tag has no release notes.