Changes testing for WIN32 to HAVE_*_H macros, changed how inline is defined on Windows