Sgminer support

See #1