Add gitignore
fix unitialized variable problem in partition discovery
#4 Add --no-as-needed to linker flags for mysqld