'Optimism' over Libya unity deal