src: remove ObjectWrap dependency from core