fix riot build
use time_now instead of time()
make DEBUG build work on RIOT