Fixed some compile errors, and now we have linking errors.