Use pure Go popcount on App Engine

App Engine doesn't allow assembly.  On that platform, use the pure Go
implementations of popcount functions.