Another contribution by Alexey, fixing the high CPU utilization in scrypt and the multi-GPU support (-d flag)