Make the tests compileable from a separate directory.