Fixed compile errors and added a checkbox preference for autologins