fix for g++
rename files
added gnu extensions