GCC Warnings corrected. Includes actual bug.