Removed some warnings when compiling for non-debug.