Fixes to the installer.

Fixes to the installer to remove or replace deprectated functions and changes to get rid of E_STRICT warnings