CRAY - initial patch from cray to support the switch and task
Fix minor formatting and couple of long lines.
Remove unneeded #ifdef
Fix some compile issues on a non-cray
Fix issues with uninitialized variables
run autogen.sh