Add dependency to graphics library