Fixes pragma issues with GNU compilers which don't allow the use of #pragma comment