misc: Added strdup

This is my own implementation of strdup using my error handling
functions. But above all, it is C89 compliant.

Signed-off-by: Celelibi <celelibi@gmail.com>