Move includes into subdirectory and add extern C.