[gettler] Fix a few minor compile problems seen with NetBSD.