Makefile.in: support out-of-source build
Merge pull request #48 from wojdyr/master

support out-of-source build