Suppress warning for order of initialization
Fixed mingw linking of shared library
Fix compilation of example 18 on mingw environment
Made code compile even if C++11 is not supported by compiler