add some native declarations to refect the Java impl