Fixed C binding code where functions are called with 'static'