macvim: Fix compilation on Mac OS X 10.9

Fixes several issues on Mavericks:
* Missing AvailabilityMacros.h include (fixes `sigaltstack` compile error)
* Ruby.framework detection
* Compile against Ruby.framework matching `ruby-command`

Works with stable, for head it disables the patches and forces the current Ruby.framework's ruby command to allow compilation.