Linux 3.10 compatibility

create_proc_entry() is no longer available in 3.10
also fixed warning issue on x86_64