Allow out of tree builds

This changeset fixes an issue with the thirdparty jansson's include paths.
For out of tree builds both the source tree and the build tree have to be
included.