Platform detection for the library loading.