Refactor class file loading and add java.lang.System stub