Refactor patching in Qt5 build script after build

Collect patching under one wrapper. Also a place holder for other
patching functions added later on.

Change-Id: Ie4001c2d150f5d683e33cbc793772eb228fb8e1d
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>