FTS-1955: Resolve compiler warnings
This will resolve most compiler warnings on the project:
- Warnings that come from third party libraries are masked via CMake files
- Type conversions are done using explicit casts
- Other types of warnings were addressed