fixed header to export C bindings correctly