Feature/fix all gcc warnings

- Fix all current gcc warnings
- turn on `Werror` for gcc
- see also #738