fix static file linking