Fixing access to graphics in non-graphics build