Tidy up repository to allow building by third-parties.