Added option to force C++ compilation

In our project we have lot of C/H files but need to be compiled as C++, this makes enforcing of C++ compiler possible. Made it more generic in order to easy add some other options as well.