Remove default_sources and raise an error if no sources are defined