removed "-static" flag