Turkish President Erdogan heads to Hungary for talks