Your issue can be resolved easily by adding a couple of readline keybindings to
/etc/inputrc:
Code:
# for urxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
If you prefer building bash against curses report back any side-effects you experience.
--mancha