Added some libraries and resolved a few compiler errors

Added several necessary libraries and resolved a few compiler
errors. Still need to figure out why the char array is depracated.