Now builds and links correctly as a framework