Improve gcc compiler detection with regex

Conflicts:
	Makefile.PL
Use NUM2PTR( any , val ) to perform safe typecasts

Otherwise you get warnings and possible problems for systems
where the sizeof(void*) is not equal to the ivsize.