Fixing static libraries compilation