adjust various data/library paths automatically if we are run from a build tree