added ./configure checking necessary libs