Fix problems pointed out by HLint

Signed-off-by: Pekka Enberg <penberg@iki.fi>