Use c99 standard and threadsave libc