fix build with asan and static linking