suggestion:
1) upgrade to 5.0.19, then you can build latest 5.6.24 instead of 5.6.23
2) in "Configure Parameters", leave only "--with-litespeed", see if build can complete
3) if 2) is ok, then build failure 's related to some "Configure Parameters", you can gradually adjust it, see which...