More changes to be compliant with boost 1.53 and C++11

Replaced shared_dynamic_cast with dynamic_pointer_cast
refs #7110