Add flag for generating executable file to check_compile

This is useful for checking that whether system has OS specific
functions, such as 'accept4', 'dup3', etc.
Merge pull request #2 from syohex/executable_flag

Add flag for generating executable file to check_compile