Use release build configuration
Add --directory parameter to git apply for proper patching