make header rebuilding work with automake