Update gitignore for MSVC files.
Fix compilation when timespec is not available.
Add VS project files.