Allow wpool to be an included application

This patch must be merged together with xmpp devapi-restart, otherwise xmpp won't start.