Linux Compatability

Changes made to support linux.