Add a UI menus for testing. Fix some Linux compilation problems.