Fixed build system for automake 1.4