make lib compilable with LDC trunk