Some RPC methods added, but mining doesn't seems to be working.
Fixed compiling problem