libavutil: Don't use fcntl if the function does not exist