Fix xlf build

Various issues with IBM's xlf compiler - a couple warnings and broken compile due to incorrect compiler flags.