ideal: strip and fix headers
freebsd: fix headers