Convert rapidjson to autotools

So that it properly handles silent rules,
make distclean etc.
Merge pull request #1583 from rubenk/autotoolify-rapidjson

Convert rapidjson to autotools