[Code Cleanup] Fixed some installer errors in PHP 5.5