x_set_foreground_color: convert NSColor to RGB

As recommended by NSColor API documentation.
Fix to bug reported by Paul Wallich
building aquamacs: retry script wrapped around rsync
This should address the scp stalls we've been experiencing