Fixed a few configure issues