Cleanup 1

This cleanup consists of three commits:
1. separate the logging to make the include easier
2. fix of some compiler warnings
3. move the tmp folder for linux based systems to /tmp 
we need some backward compatibility: if mars/logging is not already included we could define the macros here with some derprecated warnings?