Update build.sh. Change default built mode.

Add "dev" option for developer builds.
Add META-F10 option to toggle key logging enabled state.