2. After compiling a command line utility the terminal.app opens in background behind other windows. It needs lots of clicks to navigate it into foreground. I think you call this via Appleskript, but I'm just a user now. Can't you tell the terminal to open in foreground.
This should be fixed in later versions, but you can change the setting manually to:
osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'
The setting is available from Settings > Environment settings > General settings.