Fix for non-rpc2 solo mining

and update http headers