Cleanup of compilation warnings

* Add the -Wall compilation flag
* Use rl_ding() instead of undeclared ding()