[cage] GH #905 Do not add apple -Wno-long-double with custom --cc=

to avoid non-standard cc warnings about -Wno-long-double being ignored.
Also rename $flagsref to $flags.