This fixes out of tree builds

Should be references from top_builddir
Merge pull request #522 from jin-eld/fix-out-of-tree-builds

This fixes out of tree builds