Add Linux support.

Some fixed and mini updates.