Project-wide cleanup

Don't run tests as super user (sudo).
Remove unnecessary environment variables.
Minor changes to get test binaries to compile and run

 * apps/shm_test/src/shm_test.c:
 * emesh/emesh_bandwidth_all2one/src/mesh_one.c:
 * emesh/emesh_traffic/src/mesh_traffic.c:
 * io/link_lowpower_mode/src/link_lowpower_mode.c:
 * test/e-main/src/e-main.c:
 * test/e-test/src/e-test.c:
 Minor changes. Make them compile.
Add another build/test script

Add scripts/build_and_test_all.sh
Yet another build/test script. This one seems to find more
examples to build than the others, but its test failure
detection is probably worse.