liboverlay: add option to disable hw overlay