Fix API to not break on non-Linux