Fix build script to only do simple optimizations if specifically asked

Because it messes with the namespace and constants.
Merge pull request #40 from brentongunning/master

Fix build script to only do simple optimizations if specifically asked