cmake 2.8.0 has native version comparison. Use it.