About once a year about this time, we have this discussion normally using the term "black flies". Last year, we titled it "Lake Superior sailors". Give it a search, but there are no answers there. The short version (TL;DR) - there is nothing to repel them, but a fly swatter will kill them. They seem to be worst in the spring when the females are looking for a blood meal to give them enough protein for egg laying, so it will get better. They do not fly fast, so sailing in higher winds should deter them. Get your feet out of the cockpit and stay out of non-screened cabins too as they congregate in low-wind areas. I've used the fogger-type of bug spray when at anchor, but it blows away quickly so useless when moving.