Hi Tom,
I think the first issue should be easily resolved by adding appropriate @using lines to the top of your ascx file, these 2 if I'm not mistaken:
<%@ Control Language="C#" Inherits="CMS.PortalEngine.Web.UI.CMSAbstractLayout" %>
<%@ Register Assembly="CMS.PortalEngine.Web.UI" Namespace="CMS.PortalEngine.Web.UI" TagPrefix="cms" %>