Rename primitivepolynomials.c to primitivepolynomials.cpp and primitivep...

This change has been tested using VS2013 on Windows 7, MinGW GCC4.6.3 on Windows 7, and GCC 4.8.2 on Ubuntu 14.04.