Add linux compatibility
Resolve minor Linux compatibility issues.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>