ASIC and FPGA miner in c for bitcoin - modified to support Mediterraneancoin