Fixed windows compilation and style issues.