check os for ld