Rename configure.in to configure.ac
More miscellaneous code formatting changes, use more typedefs, silence more compiler warnings and get rid of random white space