Fix undefined symbols in libs