fixed compile errors with unity 4.5