Create RIOT specific make file
Fix error.h macros
Move some files since subdirs in applications are not possible
Remove static since RIOT compiler options do not support

RIOT compiles pedantic, so this is not an option