Minor changes to the makefiles.
Remove building php by default in contribs.