Included correct headers

Not having this caused compilation errors on some systems (due to
implicit declaration of memcpy, memset, etc.)