Added #include exceptions so code would compile with g++