Fix generated libs on Linux