make libgdiplus an optional dependency