Fix compilation errors/warnings

Signed-off-by: MHesham <mhesham.fcis@gmail.com>