fixed wrong staticlink check in configure