fix 'factorization' of linear polys

This should fix the MinGW32 issues