It's a little more difficult when writing GUI applications or "real", non-console projects since their headers is littered with extensions.
Well, any GUI application is non-standard by definition, so of course it will be hard to port between compilers.