Implement correct kernel
Variable misname
Fix malloc errors
Add more defines
Implement copy of magic numbers
Cast failure
name clash bugfix
Fix link name clash