I am assuming when you compiled the kernel you tured on masquerading too. Right?
you can check by doing
ls /proc/net/ and you should see
ip_masquerade if you don't then that could be why. I have never gotten that error so if it is not that I don't konw what to tell you.
Hope this helps,