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 systems.

Which patches are beeing applied is defined by the definition file.