Fixed installer bugs + PHP 5 Compatibility