Can Build with VisualStudio

Added a small compatibility layer for supporting Windows/VS compiler.