Two minor fixes to make pdf output work

Porting the demo.d from svg to pdf is a trivial search-replace with these patches.

Also, bindings still work with dmd v2.064.2 :)