[build] fix for clang: s/-Ofast/-O3/
[kernel] make it more C++11 compatible: s/NULL/nullptr/

And this will also fix compilation on 3.2