Linux issues.

Fixed compat issues with Linux.