fixed libs check; i've got to learn perl