Use data-dir in cabal file

This pull request lets people run the examples using out of source builds.