Fixed compilation on my linux box.

How did this ever compile?
Merge pull request #6 from lucasb-eyer/fix-compilation

Lucas's fixes for the hilariously screwed up CMake config.