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

This commit allows to build the kernel with -O3 optimizations
Revert "fix remaining uninitialized variables for -O3 compliance"

This reverts commit 904a0dd54ebe0cc6b93f09f24fa6c87c0cef1e0a.