Should now compile in clang 3.0

Fixed various warning flags that don't exist in clang 3.0
You might want to remove this.