Code Blocks/Eclipse: Refactor to more idiomatic cmake code + fix regex
Code Blocks/Eclipse: Add -std= flag matching.