Fixes to build on my machine.

$ uname -a
Linux peppermint 3.12.4-1-ARCH #1 SMP PREEMPT Sun Dec 8 21:18:00 CET 2013 x86_64 GNU/Linux