CustomToolChain: Fix release builds for non-windows

Change-Id: I5f2b73088db2353c7f13875391f11763b66434be
Reviewed-by: Orgad Shaneh <orgads@gmail.com>