Fixed compilation on Linux

Now compiles on Ubuntu 12.04. Getting around 840 khash/s on a GTX460.
./autogen.sh
./configure
make clean && make