workaround for dmd bug #12089

Should be ok for now until the problem is fixed in dmd/phobos.