copy files to build/ (hopefully fixes #1591)