saltstack/salt — pull request #5279 by s0undt3ch (2013-05-28 10:59:34+00:00)
Title: Only load module if windows required imports are available.

Seems the way to do it and also stops an import traceback to be logged on Linux when importing `salt.utils.winapi`.