Get make menuconfig working again

This is a huge messy commit, but finally
make menuconfig works, and it compiles!

Signed-off-by: Alec Ari <neotheuser@ymail.com>