core: smart sole pointer
osx: fix build