Fix spelling errors
Detect necessary OS portability options