lib: changed pointer handling in ALX parser library to use shared_ptr<>