added compatibility with latest RIOT version. Not sure if this is the correct way to do this, but it does the trick, so what the hell.