Debug build errors fixed

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>