Error on invalid format strings in calls to XLALPrint...() and LogPrintf...()

- requires either C99 or g++ to get _Pragma() macro
- requires gcc >= 4.7 to disable -Wformat-extra-args warning within functions
- refs #1711