Fix flags so that they work for mac and non-mac.
Use the suffix -dev for development builds.

Users can change this locally if they wish.
Cleanup and explain TARGET difference for Mac.