add travis badge
fix gcc error and warnings