[util] fix compiler warnings
[util] remove unnecessary strdup
Merge pull request #371 from cgzones/util

util