Use gflags as target name instead of PACKAGE_NAME to not make things unnecessarily generic.
Move definition of configure_sources CMake function to utils module.