prevent build-time warnings re gsw

Note: this is kind of a hassle because the tricks won’t be needed when
the gsw package is finished. But finishing gsw (and getting it into
CRAN) will likely take a month, so we need an Oce that can build
cleanly in the meantime.