[BW]: [Fix] Adding rt and pthread library should be disabled for OSX platform.