Fixed windows compile errors.

Need to increase the warning level on clang...