[cvs-nhc98] patch applied (hat): Adjust FFI imports depending on compiler version.