Fixed Compilation Type errors.

The project should build cleanly now.