boost 1.57 changed shared_pointer declaration scope

fix issue #24