Fixing some issues detected by the drone.io

Drone.IO appointed a missing header for the strdup function and warned
about the missing ';' character in a few lines of grammar file. Also,
the header cstdlib has been forgetten during the implementation of
tests.