Automatically discover command line options to make clang and gcc behave in same way. Tested with qemu.