Apply patches on Android compilation