CXX-201 Collect macros in compatibility headers
- Rename QUERY to MONGO_QUERY
- add undef/redef for (NOINLINE|PACKED)_DECL