fixed compilation error with undefined ARRAY_SIZE

fixed compilation error with undefined ARRAY_SIZE
Signed-off-by: Andriy Prystupa <andriy.prystupa@globallogic.com>