tests/unit: fix file_writer test on Mac OS X (Darwin) because of clang

those flags don't work with clang... so maybe this fix should be for clang, not Mac OS X specifically...