Linux Compatibility Fixes