Change core library to static linking