Update cgminer.c

modified method "static void stage_work(struct work *work)" to support Mediterraneancoin