Cleanup automake warnings.
Fix the build if -j4 is used.