Fix a few build warnings

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>