updates the boost library calls, no longer uses deprecated (and now removed in latest boost) dynamic casts