Fixed a few things so the project compiles.