Fix posix compile
Start moving options parsing out of main