An accurate near-field solver for scattering from cylinders with corners