(Haiku) Fix undefined min_filter_to_mag reference
(Haiku) Fix socket,pthread_create and freetype2 checks in configure
(Haiku) Link against -lroot and -lnetwork