libc: switch to C11 and C++11

with gnuism support

Change-Id: Ic42199b4adc45b8bbe8cf07eff2ca8931beb5f14