fix regression in configure script with new visibility option