update deprecated functions
Make Cairo work with Aqua on Mac (Windows to follow)