Makefile O3
Fix file descriptor not being closed
Switch to cgminer sha256 implementation, slightly faster.
Retrieve file size through stat(2), faster than lseek