Fix tabs and remove os specific code.