fixed an issue with building projects on certain platforms