Fix for x11 switch difficulty incorrect

Please review and merge.  The fix is the same one I've been running on http://mintypool.com for a few weeks now, but applied to the NOMP profitswitch code.  It also ensures the starting diff for the proxy ports for all algos is as configured in the switching config.