Define some constants conditionally in component loaders, to remove warnings when running unit tests.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7494 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove PHP notice from bp_stop_live_spammer() when running unit tests

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7495 cdf35c40-ae34-48e0-9cc9-0c9da1808c22