Fix libs in build script