Fix previous commit to compile with older versions of libdivecomputer

That was silly :-(

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>