Finally working (although not as I would like) WP 3.1.3.
Also:
* Actually, we just don't need gettext.php at all, it is provided by php
itself. Just remove the file, don't make a symlink.
* Revert back to wp-content in /usr/share/wordpress, I am not able to
make it work. Not fixing BZ 522897.