Travis: Set build mode to RelWithDebInfo

This may lead to build errors, as variables that are only used in asserts
will get optimized out and because of -Werror being set (unused variables).
Fix some warnings
Merge pull request #134 from Lukas-W/stable-0.4-travis

Set build type to RelWithDebInfo