fixed typo that causes build errors

The class name RecordBase was duplicated when defining some of its
functions.
hack to get CMake to find MyGUI on windows

CMake doesn't always find MyGUI.h for some unknown reason. This hack
forces it to use the expected location when MGUI_HOME variable is
present in the environment.