MainFrame: fix undefined behaviour
Updated third-party license information.
Update ZenLib to v0.4.29 r480.