Fixed the make file creating executable not on bin
Fixed issue with thread critical section taking too long