Fixed libraries detect