Compile fixes for PHP 5.5 & VC11

Renamed generator.php and related functions/classes to get around keyword issue in > 5.5. Does not break backwards compatibility.