Apply patches at correct point.
Platform test from @forresttanaka.