Fixed release issue.
When trying to use the release version it was failing in function labelEntireObjectAndGetArea(). This issue appeared because if there were objects on the edge of the image, when searching for the neighbors it might end in checking memory outside memory space of the process. A check to see if the coordinates are still inside the image fixed this issue.