Custom d3 3.1 build (fixes #1232)