Fix detection of compiler option

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>