compile fixes for zpc