[#2075] add flags to build on other platforms