Remove assertions from build

This code removes assertions from the built distribution, while keeping them in the development version.