Move libs to core directory