Add debug flags for Linux/OSX