Fix warnings
Fix the compile warnings on petrack
code as they are potential candidates for errors. It is not necessary to fix the code of third party libraries.
First #12 (closed) should be solved.
Discussion if we then can be more restrictive about warnings when compiling: -Werror
(all warnings will be handled as errors).