Added HTTP 500 and some fixes in cmake file