Problems with oblique derivatives in regions with piecewise smooth boundaries