Make it build && various fixes
Signed-off-by: Kristofer Ard <kristoferard@gmail.com>