fix a few compiler warnings

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>