Build c++ using -std=c++0x

Change-Id: I98ef801d272a5e0c7124a732de989e1c6caadcb5
Simplify c++/queue_array_impl and use move semantics

Change-Id: I6c0bfed3e1ec22f3410e2cec73d9ab1fa88140e6