All errors fixed but vague memory issue that prevents compiling.

Signed-off-by: David Silver <dms.silver@gmail.com>