warning fix on configure.ac and bug fix

Signed-off-by: Diogo C. Luvizon <diogo@luvizon.com>