Add -Wc++-compat when gcc is used for better compatibility with MSVC
Merge pull request #694 from Q-Leap-Networks/pull-warn-on-missing-cast

Add -Wc++-compat when gcc is used for better compatibility with MSVC