add enums and link time optimization functions to java