workfiles: Don't overwrite @PREREQUISITES.
Build fixes for Linux Mint 13.
Fixes for OSX 10.6.
Fix for GCC 4.7.2.
Work around a sign-compare bug in flex 2.5.37 on OSX 10.6.