Added ability to vary arguments to main by platform