Fixed compilation errors thanks to @ronyh87

Signed-off-by: Ian Macalinao <ian@giza.us>