tamsui: proper ifdef and cleanup

Change-Id: I13f6620cd05c36ff15dcd978f9906dc2aefe0084