Complains "declared but never defined" with bit functions