added C++ checks to ecos header in case folks want to use the static lib with C++