Partial workaround for OS X 10.8 cursor position bug; added union ops