Fixes in application programs and compiler warnings