fix OSX 10.9 compiler errors by turning them to warnings.