fixed compilation error with undefined ARRAY_SIZE

Signed-off-by: Andriy Prystupa <andriy.prystupa@globallogic.com>
added mips support

Signed-off-by: Andriy Prystupa <andriy.prystupa@globallogic.com>