Improve lib_shared.moc