AJCORE-308 Limit compiler specific pragma to Windows

Since pragma directives are by definition compiler specific they must always be
conditionally compiled in for those platforms/compilers.

Pragmas should be surrounded by #if defined(QCC_OS_GROUP_WINDOWS) or similar.

Change-Id: Icd9e5e3c544ce560446cf75188b3cd48e5d6fed4