More linux changes and other small stuff.
Enabled preferences again.