Made some changes to make v4.2.x compile for vxWorks

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>