fixing some build errors

Signed-off-by: Bryan Smith <zarboz@gmail.com>