Makefile.in: support out-of-source build