Aberdeen-born midfielder signs for Dundee United