add compat32 detection