fix build architecture checking & messages