Fixed enum warnings for xcode 4.6.