definition of scheme-callable C functions and other stuff