fixed some mistakes from the shift to Polynomial, compiles with MVS2010