Updated code to work with gcc 4.7.0
Updated doxygen config and fixed warnings