Making wierd gcc behavior a little bit less so