Fix wrong define in the err logging macro

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Added bits from timer_lib library

It's nice crossplatform library under Public Domain license https://github.com/rampantpixels/timer_lib

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Make timer_lib bits compile under MinGW

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Fix wrong ret value check from timer_lib_initialize

Signed-off-by: Petr Stetiar <ynezz@true.cz>
Windows: Init logging and timer

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Raise log priority to debug in tests if we're building with that feature

Signed-off-by: Petr Štetiar <ynezz@true.cz>