Tons of fixes to get stuff compiled without errors and warnings. Doesnt link at introspection stage though.