Move definition of configure_sources CMake function to utils module.