Switched to C99 complex values to improve compatibility with older versions of OSX