make the SDK compile at least
(lots of broken stuff)