more taking stuff from the iOS version

also:
- try to add an "analyze" target to the top-level makefile as well
(currently runs into a linking error)
- use make vars when regenerating XSyms.txt
- a few new configure checks
- add an exported symbols file