Removing dynamic flags from executable compilation