Fixed code to remove warnings when compiling with ASC2

Fixed a few small sections of code that were throwing warnings when compiling with ASC2 out of FlashDevelop 4.4.