fix gcc startfiles for shared builds