Removed unused variable
Optimize kernel for size (for now) and use gcc instead of ld for better optimizations