Use SQLITE_EXTENSION_INIT3
Remove usage of target_compile_definitions
Link with libm if necessary
Define SQLITE_CORE when building static library