Builds on Windows; implemented connect timeouts; bug fixes