Replaced bzero with memset and , updated #includes

Linux GCC wanted #include's <algorithm> and <cstring>