more tests and minor fixes
Fixes for error handling
Use Winapi in a way that is now preferable in Boost
Windows related fixes
Merge pull request #1 from apolukhin/develop

Develop