Added simplistic configure check for Apache version
Fix some compiler warnings