This was trampling m_program on MXE/Linux. Should fix 3251, 3262
Merge pull request #3264 from fluffyfreak/fix-trampling

Fix memory trampling of m_program on MXE/Linux.