Use try_compile directly instead of try_cflags. Added build status to readme.