fixes for use with newer GCC

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>