fix building so file on Linux