Add missing header
Replace source of gettimeofday with getmonotonictime

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>