Modify MIB table/entry building method for examples.

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>