Fixed library linkage & stuff. First successful build!