fix all warnings under libs director on gcc 4.7