Use NSCalibratedRGBColorSpace for NS color space conversion

The NSCalibratedRGBColorSpace is guaranteed to be translatable
to alpha+RGB via NSColor's getRed:... method.
Add same conversion for background color.
Merge branch 'aquamacs3' of https://github.com/davidswelt/aquamacs-emacs into aquamacs3