Fixed failure to build on other platforms