fixed compiler settings on windows, added few comments
jsonrpc option in cmakes, removed all warnings