[MOSYNC-3066] WP7 server connections are not supported. Return error code instead of crashing.
Also fixed some warnings.
Merge pull request #429 from fredrikeldh/master

MOSYNC-3066