Compile fixes

Hi this fixes two issues that prevented STP from compiling on my system