Major linux fixes

- Fixed Makefile
- Fixed freeze on linux
- Fixed message not send on linux
- Fixed wrong sleeps on linux

- Added Possibility to let bot offline