Added support for building in a separate directory

Currently, only building in the source tree succeeds. This change fixes the tests and symbols paths.