Replace BSD-specific integer types by their POSIX equivalents.