ruby: use placement-new instead of hack