fix library entry point.