use ensure_packages function for prereqs

This should fix duplicate declarations, especially since these packages are pretty 'low level' and likely to be included in other modules.