Fixes for exe function and application build process