Building documentation improved

* Now using gcc48 on FreeBSD
* Steps for Gentoo and CentOS
* Changed subprocess usage to be python 2.6 compatible (for CentOS)