fixed some visual C++ specifics. compiles under Ubuntu VM  again