Simplified the compat module

I'm trying to go back to something simplier, since the compat module was
getting to complicate to me to modify. Going back to something minimalistic may
help doing the module more easily to mantain and extend, and hopefully it will
still provide all the needed functionalities.