Added support for VS 2013 and TDM compilers.

Clean commit instead of #481 ...