rename .cmake, fix linking