fix compile warn %lu > %zu
FreeBSD ptx support WIP