fixed compile errors for SDL 2.0 update