Merge pull request #5 from eugpermar/master

Created rd_memctx_strdup function
Compile on gcc 4.1 (!)