Added support for patching php source code

I've added support for patching the php source code. This should allow PHP versions lower than 5.3.7 to be compiled on newer system.

Which patches are beeing applied is defined by the definition file.