Non-Windows platform crash fix