Add os specific initialization logic.

Issue #SPCRP-11 work 1h Added os specific initilization logic.