Add ifdef guards around GCC diagnostic pragmas
Merge pull request #42 from gruzdev/pragmas

Add ifdef guards around GCC diagnostic pragmas (Thanks Mikhail! sorry it took me so long to get to this!)