Check if libraries exist in extconf.rb