fix native bindings on Win&Linux