Added missing linking to static libraries