support release and debug libs build