Fixed up Repo to allow building of static binaries