fixed build problems added libs