Check for createWindow presence. Closes #1790
Build dist