Minimize size in library builds
Add version info
VS2010 project
Improved error handling