mac compatibility fix concerning qsize call