Fix library order for gcc used in Ubuntu 12.04