Fixed out-of-source build
Merge pull request #707 from xantares/master

Fixed out-of-source build