Preserving state of 0.4.2 upgrade on a branch.
More changes to upgrade to 0.4.2.
FamiTracker 0.4.2 builds and runs but problems remain. Source base has been updated to 0.4.2.
Fixing octave toolbars annoying disappearance if the window is too small. Fixing Text Exporter LPCTSTR casts to avoid non-POD errors. Fixing window positioning for frame editor and pattern editor content.
Fixing window resizing issue in Comments dialog. Fixing DestroyWindow calls so that it properly virtualizes.
Adding missing thread messages WM_USER_SET_CHIP and WM_USER_VERIFY_EXPORT.
Fixing WaitForSingleObject. Fixing memory leak in CDC destructor. Fixing improper drawing in non-main thread.
Adding support for building using uc65 as a custom tool. Fixing error search regex to be more generic. Fixing APU mixing issue at end of sample buffer if sample size isn't an even divisor of sample buffer size.