Fixed "declared 'static' but never defined" warnings