Clean up compiler pragmas

UG uses pragmas in a few places, most of which appear to be obsolete (to me). Try to find out what they do (or did) to see if they are still relevant, and get rid of as many of them as possible.