some improvements to work well with modern compilers
more compatibility stuff
improved a spec
added prime generation
fix gcc-4.9 includes
Merge branch 'fix-gcc-4.9-headers' of github.com:porzione/ttcrypt into fix-gcc-4.9-headers

Conflicts:
	ext/ttcrypt/text_utils.h