Move platform specific logic to SConscript files.