quick fixes to make it compatible with latest Julia updates