Nestled on the shores of a loch, Linlithgow Palace, birthplace of Marie Suart, has travelled through the centuries unscathed.