Fix memory trampling of m_program on MXE/Linux.

Should fix #3251, #3262

It was running off the end of an array trampling other values. For some reason this was fine in all of my builds across all platforms and using VS2013. However it killed the MXE version.

@robn got it!