4.6-Linux support (fix drawing)

fix mono drawing on various linux distribution