php 5.5 compatibility fixes, install code cleanup