I do not know if this is on purpose but, as in topic, UICamera blocks OnMouse* events. Solution is to replace lines 934-949 with line 948 alone (or change #ifdef condition).
If this is a bug, you should add checkbox to UICamera to choose behaviour.
If this is not a bug, I suppose it may be because you thought that UNITY_4_0 covers all 4.x versions (which is not true).