Fixes for Big endian support
Signed-off-by: sanoj <sunnikrishnan@stec-inc.com>