vim: Fix compilation on Mac OS X 10.9

On Mavericks we need to explicitly include AvailabilityMacros.h to have
the version detection macros defined.