Automatic OS specific implementation detection