Use warning instead of warn for logging (fix #170)