new freebsd platform fixes
added script conversion for long type; fix warning