Fix the pthread and kernel32 library checks to not check for main. The checks fail...