Some changes to support pyuv 0.10.0