fix dynamic build