Slightly changing cmake for compatibility with 2.4.2