fixed warnings and remote tests in MinGW build