Fix user functions.
Modify sbi_context_t declaration for cross platform compatibility.