fix debug/release mode, add kernelbugdetedstub