Fixed #3471 (Unused functions: take __attribute__((constructor)) in to consideration)