Add basic support for multiple configurations.

Factor out setting of prefix paths into a top-level build file.