fix build errors / warnings for aperture unittest