Fix IllegalAccessError when Javassist is used