[build] switch to -std=gnu++0x

This allows removal of M_PI hack while being supported by both gcc and
clang.
[build] Use pi constant from boost, switch back to -std=c++0x
[build] Check if boost xtime is broken and suggest upgrading boost.