Fix crash on FreeLibrary, omit return type if int for winapi