Saving lib from bitrot; now works with LDC 0.12.1

Tests don't run on DMD due to epic bug:
http://d.puremagic.com/issues/show_bug.cgi?id=9449