Makefile: add optimization flags
fix remaining uninitialized variables for -O3 compliance

This commit allows to build the kernel with -O3 optimizations