Build successfully on Ubuntu. Also got rid of extra couts