Add wrapper script; fix patches.
Add more meaningful brew test.