Added our own strdup functions...

strdup in MSYS is messed up (freeing a strdup'd string in MSYS can cause a
crash)