Fix build error and binary filename case