Fix static lib generation for linux