Bug fix

Fixed a crucial cpuminer bug and linux compile bug