Boost upgrade (to 1.55) and scope fix.
The change in scope for isnan is required for c++11 compilation.