Convert rapidjson to autotools

So that it properly handles silent rules,
make distclean etc.