Fixes for node-canvas.