Fixed a few libc errors in macros