fix unix build for cpp files
change back to .c files, cpp failed on linux