Fixed nan/inf include guard when compiler is not MSVS
Touch import libs after build only when using msvc9