Fixed some linking. Kind of ugly, but it works.