fix to allow for minimized and optimized builds