Fixed issues compiling extension on certain machines.