some fixes for matlab parallel pool changes