Fixes burning error: passing GLOBAL_C_FLAGS to c++ compilor
Debugs static lib compilation and adds example_bin_staticlib/