compilable under unity 4.5

and delete some warning