use astrcmpi to prevent multiplatform clib incompatibility