Fixed a connect bug + added Linux support