allow different cxx stdlib versions on Linux

I am not sure if we want to always use the newest version by default and if this is a wide enough range of versions to support. I have only tested with 4.8 and 4.9.