Fixed dependencies between core and graphics module.