EU 'optimistic' over Cyprus deal despite problems