Fixed compile errors, but RPC has trouble connecting...