Use portable variadic macros for debugging

Switch from GNU-specific to portable, standards-conforming variadic
macros. Should silence _many_ clang warning when using -pedantic.