Replaced sized integers with standard equivalents.
Fixed a few build problems with C++11, forcing GCC 4.7 now.