Modifications made to allow compilation with Ubuntu Quantal 12.10 32bit