fix build errors (core library)