Fix static library loading