D: Fix out-of-source build for examples.
Add D to Travis CI.