Added workaround for vc9 compiler error.