fix build compatibility for Windows and Unix

The commit for soci::binary support was based on Windows test compile only.
The Travis compile stopped with error on ```__min()``` call.
This has been fixed.