Make mac_clipboard_reattch support for OS X 10.9
Fix cabal wrapper