little fixes for pypy and ironpython