Fixes for Linux compilation issues.