Fixing some issues detected by the drone.io

Drone.IO appointed a missing header for the strdup function. Also,
it warning me about the missing ';' character in a few lines.