Fixed linux compilation problems by reordering g++ arguments.
Fixed queue data initialization problems.