prelim build on linux
fix some bad usage of boost shared ptr